Expand description

SIMD-accelerated base64 encoding and decoding.

Examples

use base64_simd::Base64;

let bytes = b"hello world";
let base64 = Base64::STANDARD;

let encoded = base64.encode_to_boxed_str(bytes);
assert_eq!(&*encoded, "aGVsbG8gd29ybGQ=");

let decoded = base64.decode_to_boxed_bytes(encoded.as_bytes()).unwrap();
assert_eq!(&*decoded, bytes);

Modules

Structs

Base64 variants

Base64 Error

A write-only slice of bytes.